import os
import os.path
if (os.path.exists(r"D:\大学\1933")==False):
    os.mkdir(r"D:\大学\1933")
if os.path.exists(r"D:\大学\1933"):
    a=1
    while (a ==1):
        flie = open(r"D:\大学\1933\20193323","a")
        studentnumber = input("输入学号：")
        name = input("输入姓名：")
        subject = input("输入学科：")
        grade = input("输入成绩:")
        flie.write("\n学号:")
        flie.write(studentnumber)
        flie.write("\n名字:")
        flie.write(name)
        flie.write("\n学科:")
        flie.write(subject)
        flie.write("\n分数:")
        flie.write(grade)
        flie.close()
        a=int(input("继续输出1"))
flie = open(r"D:\大学\1933\20193323", "r")
tuple = flie.readlines()
for item in tuple:
    print(item)



